//
//  TreeCache.h
//  SpaceViking
//
//  Created by gnt on 12/13/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "cocos2d.h"
//#import "Box2D.h"
#import "Constants.h"
#import "TreeEntity.h"
#import "TroopEntity.h"
#import "BackgroundLayer.h"
#import "Samurai.h"
#import "CommonProtocols.h"
#import "RadarItemEntity.h"
//#import "Box2D.h"
//#import "GLES-Render.h"

@interface TreeCache : CCNode {
//    CCSpriteBatchNode* treeBatchNode;
//    CCSpriteBatchNode* troopBatchNode;
//	CCArray* trees;
    
	int updateCount;
    float playerZ;
    int Consts_START_Z;
    float Consts_PERCENT_USED;
    float Consts_Z;
    float Consts_START_Z_SCALE;
    float zX;
    float timeOfGame;
    int yCollide;
    int fromXCollide;
    int toXCollide;
    int numOfTrees;
    float radarMoveY;
    float radarMoveX;
    
    Samurai *samuraiCharacter;
    CCSprite *radarCharacter;
    NSMutableArray *treeArray;
    NSMutableArray *troopArray;
    NSMutableArray *troopDiedArray;
    NSMutableArray *radarPointArray;
    
}

- (void)calculatePseudoDepth;
- (void)checkOutScreen;
@end
